<?php
define('IN_BSTO', true);

include 'db.class.php';
$bstoPath = realpath(dirname(dirname(__FILE__)));
include $bstoPath.'/application/registry.class.php';
include $bstoPath.'/application/template.class.php';

function __autoload($class_name) 
{
    $filename = strtolower($class_name) . '.class.php';
    $file = $filename;
    
    if ( file_exists($file) == false ){
        return false;							
    }
    include($file);
}
// end test

$hash = $_GET['hash'];
$action = $_GET['action'];
$page = $_GET['page'];

$paging = new PagingBook();

$result = $paging->run($action, $page, $hash);
echo $result;    

?>